package chances.mock.model;

public class BindResponse {

	private String qrcodeurl = "http://14.29.2.24:8080/bind/mgr.do?cmd=bind&i=1010256&e=1488437045&t=19E6D5835F0553C111717C489A82F2B7&";

	private long createtime = System.currentTimeMillis();

	private int res_code = 0;

	private String res_desc = "成功";

	private long lifetime = 3600;

	public String getQrcodeurl() {
		return qrcodeurl;
	}

	public void setQrcodeurl(String qrcodeurl) {
		this.qrcodeurl = qrcodeurl;
	}

	public long getCreatetime() {
		return createtime;
	}

	public void setCreatetime(long createtime) {
		this.createtime = createtime;
	}

	public String getRes_desc() {
		return res_desc;
	}

	public void setRes_desc(String res_desc) {
		this.res_desc = res_desc;
	}

	public long getLifetime() {
		return lifetime;
	}

	public void setLifetime(long lifetime) {
		this.lifetime = lifetime;
	}

	public int getRes_code() {
		return res_code;
	}

	public void setRes_code(int res_code) {
		this.res_code = res_code;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("{\"qrcodeurl\":\"").append(this.getQrcodeurl()).append("\",\"createtime\":")
				.append(this.getCreatetime()).append(",\"res_code\":").append(this.getRes_code())
				.append(",\"res_desc\":\"").append(this.getRes_desc()).append("\",\"lifetime\":")
				.append(this.getLifetime()).append("}");
		return sb.toString();
	}

}
